<?php 
use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
?>
<div class="row">
    <div class="container lh30">
        <a class="topNav" href="<?=Url::toRoute('/system/site/index')?>"><img src="<?=Yii::getAlias('@web/backend/img/home/home.png');?>" alt="首页"/>返回首页</a>
    </div>
</div>

<div class="row nav-brand-bg borB">
    <div class="container lh30">
        <ul class="nav nav-tabs">
            <li class="active"><a href="" style="color: #575757;">权限管理</a></li>
        </ul>
    </div>
</div>


<div class="container mt20">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>角色名称</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($data as $d) {?>
        <tr>
            <td><?=Html::encode($d['name'])?></td>
            <td>
				<a class="red mr20 btn btn-sm btn-edit"  href="<?=Url::toRoute(['rolemenu/addaccess','id' => $d['id']]) ?>">分配权限</a>
            </td>
        </tr>
        <?php }?>
        </tbody>
    </table>
</div>
